/**
 * @file color.h
 * @author ThomasKingFree
 * @brief
 * @version 0.1
 * @date 2021-03-16
 *
 * @copyright Copyright (c) 2021
 *
 */

#ifndef YUE_GUI_COLOR_H
#define YUE_GUI_COLOR_H

#include <cstdint>

namespace YueGUI {
enum ColorFormat {
    RGB565,
    RGB888,
    ARGB8888,
    A4,
    A8,
};

struct ColorRGB565 {
    uint16_t blue : 5;
    uint16_t green : 6;
    uint16_t red : 5;
};

struct ColorRGBA8888 {
    uint8_t blue;
    uint8_t green;
    uint8_t red;
    uint8_t alpha;
};
}
#endif
